import Layout from '@/layout'

const systemRouter = {
  path: '/system',
  component: Layout,
  redirect: '',
  name: 'System',
  meta: {
    title: '系统管理',
    icon: '系统管理'
  },
  children: [
    // 机构设施标签
    {
      path: 'facilityLabelManagement',
      component: () => import('@/views/system/facilityLabel/index'),
      name: 'FacilityLabelManagement',
      meta: { title: '机构设施标签管理', icon: '机构设施标签管理' },
      children: [
        {
          path: 'facilityLabelList',
          component: () => import('@/views/system/facilityLabel/facilityLabelList'),
          name: 'FacilityLabelList',
          meta: { title: '机构设施标签管理', noCache: true }
        },
        {
          path: 'facilityLabelAdd',
          component: () => import('@/views/system/facilityLabel/facilityLabelAdd'),
          name: 'FacilityLabelAdd',
          meta: { title: '机构设施标签添加' },
          hidden: true
        },
        {
          path: 'facilityLabelEdit/:id',
          component: () => import('@/views/system/facilityLabel/facilityLabelEdit'),
          name: 'FacilityLabelEdit',
          meta: { title: '机构设施标签编辑' },
          hidden: true
        }
      ]
    },
    // 机构周边环境标签
    {
      path: 'environmentLabelManagement',
      component: () => import('@/views/system/environmentLabel/index'),
      name: 'EnvironmentLabelManagement',
      meta: { title: '机构周边环境标签管理', icon: '机构周边环境标签管理' },
      children: [
        {
          path: 'environmentLabelList',
          component: () => import('@/views/system/environmentLabel/environmentLabelList'),
          name: 'EnvironmentLabelList',
          meta: { title: '机构周边环境标签管理', noCache: true }
        },
        {
          path: 'environmentLabelAdd',
          component: () => import('@/views/system/environmentLabel/environmentLabelAdd'),
          name: 'EnvironmentLabelAdd',
          meta: { title: '机构周边环境标签添加' },
          hidden: true
        },
        {
          path: 'environmentLabelEdit/:id',
          component: () => import('@/views/system/environmentLabel/environmentLabelEdit'),
          name: 'EnvironmentLabelEdit',
          meta: { title: '机构周边环境标签编辑' },
          hidden: true
        }
      ]
    },
    // 部门管理
    {
      path: 'departmentList',
      component: () => import('@/views/system/organize/departmentList'),
      name: 'DepartmentList',
      meta: { title: '部门管理', noCache: true, icon: '部门管理' }
    },
    // 职位管理
    {
      path: 'positionList',
      component: () => import('@/views/system/organize/positionList'),
      name: 'PositionList',
      meta: { title: '职位管理', noCache: true, icon: '职位管理' }
    },
    // 员工管理
    {
      path: 'employeeList',
      component: () => import('@/views/system/organize/employeeList'),
      name: 'EmployeeList',
      meta: { title: '员工管理', noCache: true, icon: '员工管理' }
    },
    // 权限管理
    {
      path: 'authorityList',
      component: () => import('@/views/system/organize/authorityList'),
      name: 'AuthorityList',
      meta: { title: '权限管理', noCache: true, icon: '权限管理' }
    }

  ]
}

export default systemRouter
